/**
 * 
 */
package com.roc.util.constant;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @author RenPengFei
 * 
 *         2011-11-21
 */
public class Constant implements Serializable {

	private Constant() {
	}

	public static final String LOG_TYPE_NORMAIL="00";
	
	public static final String LOG_TYPE_EXCEPTION="01";
	
	public static final String REGIST_MERCHANT_ROLE_TYPE = "02";
	
	public static final String REGIST_MERCHANT_TYPE = "01";
	
	public static final String REGIST_PARENT_MERCHANT_NO = "00000000000";

	public static final double DEFAULT_MERCHANT_PAY_MAX = 5000;

	public static final double DEFAULT_MERCHANT_DAY_PAY_MAX = 20000;

	public static final String SESSION_LOGIN_USER = "_SESSION_LOGIN_USER_";

	public static final String SESSION_LOGIN_MERCHANT = "session_merchant";

	public static final String EFFECTIVE_USER_STATUS = "01";

	public static final String INEFFECTIVE_USER_STATUS = "00";

	public static final String MAIN_PAGE_DATE_FORMAT = "yyyy年MM月dd日 EEE";

	public static final String PAGE_FIELD_DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

	public static final String PAGE_FIELD_DATE_FORMAT = "yyyy-MM-dd";
	//40001 收单事业部  ---39600  生产代理商
	public static final String SHOUDANSHIYEBU_ID ="40001";
	// 受理市场总部 shoulishichangzongbu
	public static final String SHOULI_SHICHANG_ZONGBU_NAME  ="受理市场总部";
	// 云闪付，默认 费率
	public static final double FEE_RATE = 0.28d;
	// 银联扫码（非优惠），默认 费率
	public static final double UNIONPAY_EVERYDAY_RATE = 0.5025d;
	// 银联扫码（优惠），默认 费率
	public static final double UNIONPAY_UNEVERYDAY_RATE = 0.2d;
	// 支付宝微信扫码，默认 费率 已改
//	public static final double ALIPAY_RATE = 0.24d;
	// 支付宝微信扫码，最小 默认 费率 
	public static final double MIN_ALIPAY_RATE = 0.25d;
	// 支付宝微信扫码，最大 默认 费率 
	public static final double MAX_ALIPAY_RATE = 0.35d;
	
	// 除了收单事业部给的几个分公司的序号编码，其他的分公司默认 序号编码为 0_
	public static final String OTHER_AGENTNUMBER = "0-";
	/**
	 * 管理员id
	 */
	public static final String ADMIN_ID ="1";
	/**
	 * 云商宝名称
	 */
	public static final String YSB_NAME ="云商宝";
	
	// 管理员roleId,部门经理roleId,项目经理roleId,项目助理roleId,开发人员roleId,编译roleId
	public static final String[] ROEL_ID = { "135469237217500000",
			"135469237240900001", "135469237240900002", "135469237242500003",
			"135469237242500004", "135469237242500005" };
	// 1正确，0错误
	public static final String[] RESULT = { "1", "0" };
	// 开发，提数，其他类型任务初始化状态
	public static final String TASK_STATUS_INIT = "1";
	// 任务状态,没有0状态
	public static final String[] TASK_STATUS = { "0", "1", "2", "3", "4", "5",
			"6", "7", "8", "9", "10", "11" };
	// 任务类型
	public static final String[] TASK_TYPE = { "1", "2", "3" };
	// ajax返回类型
	public static final String[] AJAX_CONTENT_TYPE = { "application/text",
			"application/json", };
	//商户进件图片上传目录
	public static final String  IMG_PATH="/home/mccimages";
	
//	// 文件上传目录
//	public static final String UPLOAD_FILE_PATH = "/cpic/dms/upload/";
	public static final String SYSTEM_UPLOAD_FILE_ROOT_PATH_KEY = "files_upload_path";
//	public static final String UPLOAD_FILE_TYPE[] = { "reqFileId", "adpFileId",
//			"utFileId", "utApplyFileId", "codeFileId", "releaseFileId" };
//	public static final String TASK_CONMMENT[] = { "任务摘要", "任务号", "需求来源",
//			"任务开始时间", "预计单元测试完成时间", "任务类型", "任务状态", "开发人", "审核人", "发布版本",
//			"是否jira任务", "需求文档", "ADP文档", "单元测试文档", "单元测试申请文档", "代码检查规范确认文档",
//			"预发布验证文档" };
	
	
	
	/**
	 * 初始商户号
	 */
	public static final String MERC_CODE_DEFAULT = "000000000000000";
	
	/**
	 * 初始终端号
	 */
	public static final String TERM_CODE_DEFAULT = "00000000";
	
	/**
	 * 最多允许审核次数(算当前一次要加1)
	 */
	public static final int MER_CHECK_TIMES = 4;
	
	
	/**
	 * 最多允许证件号次数
	 */
	public static final int MER_CARD_TIMES = 5;
	
	/**
	 * 允许营业执照号
	 */
	public static final int MER_BUSS_TIMES = 1;
	
	/**
	 * 检测营业执照标志
	 */
	public static final String IS_CHECK_MER_BUSS = "Y";
	
	/**
	 * 一机一码录入商户号前三位
	 */
	public static final String MER_NO_START = "001";
	
	
	/**
	 * 代理商默认的分润比例 {区间段,金额,比例}
	 */
	public final static String[][] DEFPER = { { "0", "100000000", "0.7" },
			{ "1", "200000000", "0.8" }, 
			{ "2", "200000000", "0.9" } };
	
	public static final int MAX_PROFIT_MODULE_SIZE = 5;
	
	public static final Map<String, String> CARD_CLASS_MAP = new HashMap<String,String>(){
		{
			put("00","贷记卡");
			put("01","借记卡");
			put("02","准贷记卡");
			put("03","预付卡");
			put("04","扫码交易");
			put("10","云闪付贷记卡");
			put("11","云闪付借记卡");
			put("12","云闪付准贷记卡");
			put("14","优惠类扫码交易");
			
		}
	};
	
	/**
	 * 调单原因码
	 */
	public static final Map<String,String> REASON_MAP= new HashMap<String, String>(){
		{
			put("1000", "查询");
			put("1001", "二次查询");
			put("1002", "调单");
			put("1003", "二次调单");
			put("1004", "贷记调整");
			put("1005", "请款");
			put("1006", "退单");
			put("1007", "再请款");
			put("1008", "二次退单");
			put("1009", "例外协商");
			put("1010", "例外长款");
			put("1011", "托收请款");
			put("1012","托收协商");
		}
	};
	public static final String STR_NUMBER_ONE = "1";	//字符串1
	public static final String STR_NUMBER_TWO = "2";	//字符串2
	public static final String STR_NUMBER_THREE = "3";	//字符串3
	
	public static final String SD_ORG_CD="48502000";
}
